package com.jielihaofeng.nettyadvance.chat.message;

import lombok.Data;
import lombok.ToString;

/**
 * @description 退出群组消息
 * @author Johnnie Wind
 * @date 2021/11/18 11:23
 */
@Data
@ToString(callSuper = true)
public class GroupQuitRequestMessage extends Message {

    // 组名
    private String groupName;
    // 用户名
    private String username;

    public GroupQuitRequestMessage(String username, String groupName) {
        this.groupName = groupName;
        this.username = username;
    }

    @Override
    public int getMessageType() {
        return GroupQuitRequestMessage;
    }
}
